package work.gac.unbind.v2;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

import static work.gac.unbind.v2.Setting.Fix.manageBaseUrl;

/**
 * @author Gong.Yang
 */
public interface Setting {
    interface Fix {
        String date = DateUtil.format(new Date(), "yyyy-MM-dd");

        String manageToken = "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJtYW5hZ2VyIiwiY2xpZW50VHlwZSI6InVzZXIiLCJ0ZW5hbnRJZCI6ImxvcmVhbCIsImV4cCI6MTcwODIyODg0NiwianRpIjoiVDdUSm10cGJtV0Vyc0dLYTJQS3daZCJ9.aP-8jDeR3nCvuPTLYy28os2ZPFFkx3K6hXo4cixWrZCUzy__gvg4OhmBii3xZXKNu2BqgUbVbQR1AiOmFZSpqA";
        //        String datalakeToken = "";
        String filePath = "C:\\work-records\\Apple\\l-会员解绑\\" + date;

        String manageBaseUrl = "https://socialcrm-admin-api.giorgioarmanibeauty.cn";
        String secretKey = "cBXC1FyQ8//pCLfWhIFwpw==";

        String storeCode = "gac";
    }

    String tokenUrl = "https://dl-api.lorealchina.com";
    String url = "https://dl-api.lorealchina.com/api/interface/third/va";
    String clientId = "lianwei_gac_mini";
    String clientPassword = "JUCpiW26";
    String username = "lianweigacmini";
    String password = "A4UtUjpuO6Kql33B";
    String grantType = "password";
    String brandCode = "gac";
    String programCode = "gac";
    String miniChannelCode = "6P0";
    boolean counterCodePrefix = true;
    String counterPreFixCode = "Chinagac";

    static interface URL {

        /**
         * 查询用户基础数据
         */
        String DATA_LAKE_QUERY_MEMBER_INFO = "%s/member/queryMemberInfo";
        /**
         * 绑定或解绑用户
         */
        String DATA_LAKE_UNBIND = "%s/member/binding";

        /**
         * 管理后台查询-三方卡号
         */
        String getInfoUrlByThCode = Fix.manageBaseUrl + "/gateway/api/member-manage/store/" + Fix.storeCode + "/customer_info_data?page=0&size=10&expression=basicInfo.thirdCode+eq+"
                + "%s" + "&sort=basicInfo.registerTime,desc";
        /**
         * 管理后台拆线呢-电话号码
         */
        String getInfoByPhone = Fix.manageBaseUrl + "/gateway/api/member-manage/store/" + Fix.storeCode
                + "/customer_info_data?page=0&size=10&expression=basicInfo.mobile+eq+" + "%s" + "&sort=basicInfo.registerTime,desc";

        /**
         * 管理后台解绑
         */
        String unbinding = Fix.manageBaseUrl + "/gateway/api/member-manage/store/" + Fix.storeCode + "/data_lake/customer/unbind/%s";


        /**
         * 管理后台删除
         */
        String delete = Fix.manageBaseUrl + "/gateway/api/member-manage/store/" + Fix.storeCode + "/customer_info_data/credential/%s";

    }
}
